package com.followerback.model;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Unindexed;

@Cached public class TwitterProfileTwitterProfileFollower {

	@Id private Long id;
	
	private long twitterProfileID;
	
	private long twitterProfileFollowerID;
	
	@Unindexed private long cursor = -1;
	
	private long cursorLastUpdated;
	
	private boolean processed = false;
	
	private long creationTime;
	
	public TwitterProfileTwitterProfileFollower() {
		super();
	}

	public TwitterProfileTwitterProfileFollower(long twitterProfileID, long twitterProfileFollowerID) {
		this.twitterProfileID = twitterProfileID;
		this.twitterProfileFollowerID = twitterProfileFollowerID;
		this.creationTime = System.currentTimeMillis();
	}

	public long getTwitterProfileID() {
		return twitterProfileID;
	}

	public void setTwitterProfileID(long twitterProfileID) {
		this.twitterProfileID = twitterProfileID;
	}

	public long getTwitterProfileFollowerID() {
		return twitterProfileFollowerID;
	}

	public void setTwitterProfileFollowerID(long twitterProfileFollowerID) {
		this.twitterProfileFollowerID = twitterProfileFollowerID;
	}

	public Long getId() {
		return id;
	}

	public long getCursor() {
		return cursor;
	}

	public void setCursor(long cursor) {
		this.cursor = cursor;
		this.cursorLastUpdated = System.currentTimeMillis();
	}

	public boolean isProcessed() {
		return processed;
	}

	public void setProcessed(boolean processed) {
		this.processed = processed;
	}

	public long getCursorLastUpdated() {
		return cursorLastUpdated;
	}

	public long getCreationTime() {
		return creationTime;
	}
}
